package com.qf.fronted.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@TableName("orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    @TableField("o_id")
    private Integer id;
    @TableField("o_no")
    private String orderNo;
    @TableField("o_good_price")
    private BigDecimal goodPrice;
    @TableField("o_num")
    private Integer goodNum;
    @TableField("0_status")
    private Integer status;
    @TableField("o_user_id")
    private Integer userId;
    @TableField("o_appraise_status")
    private Integer praiseStatus; //评价状态
    @TableField("o_create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("o_pay_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    @TableField("o_good_img")
    private String goodsImg;
    @TableField("o_good_title")
    private String goodsTitle;
}
